<?php

namespace App\Http\Controllers\Web;

use Illuminate\Http\Request;
use App\Http\Controllers\Controller;
use App\Model\Transaction,App\Model\President;
class TransactionController extends Controller
{
    //
    public function index(){
        $solding = Transaction::where('status',0)->get();
        $solded = Transaction::where('status',1)->get();
        $president = President::all();
        return view('transaction',[
            'currentNav' => 'transaction',
            'solding' => $solding,
            'solded' => $solded,
            'president' => $president
        ]);
    }
}
